.class public Lcom/htc/android/footprints/commonui/TBarGroupDrawable;
.super Lcom/htc/android/footprints/commonui/TBarDrawable;
.source "TBarGroupDrawable.java"


# static fields
.field public static mBoard:Landroid/graphics/drawable/Drawable;

.field public static mSelectedBoard:Landroid/graphics/drawable/Drawable;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 18
    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/htc/android/footprints/commonui/TBarDrawable;-><init>(Landroid/graphics/drawable/Drawable;Z)V

    .line 19
    sget-object v0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->copyBounds()Landroid/graphics/Rect;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->setBounds(Landroid/graphics/Rect;)V

    .line 20
    return-void
.end method


# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
    .locals 1
    .parameter "canvas"

    .prologue
    .line 27
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 30
    iget-boolean v0, p0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mSelected:Z

    if-eqz v0, :cond_0

    .line 31
    sget-object v0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mSelectedBoard:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getCurrent()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 35
    :goto_0
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    .line 36
    return-void

    .line 33
    :cond_0
    sget-object v0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getCurrent()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    goto :goto_0
.end method

.method public getOpacity()I
    .locals 1

    .prologue
    .line 40
    sget-object v0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getOpacity()I

    move-result v0

    return v0
.end method

.method public setAlpha(I)V
    .locals 1
    .parameter "i"

    .prologue
    .line 45
    sget-object v0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mSelectedBoard:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 46
    sget-object v0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 47
    return-void
.end method

.method public setColorFilter(Landroid/graphics/ColorFilter;)V
    .locals 1
    .parameter "colorfilter"

    .prologue
    .line 51
    sget-object v0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V

    .line 52
    sget-object v0, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mSelectedBoard:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V

    .line 53
    return-void
.end method
